package com.zhouxiaoge.builderpattern.meal;

import com.zhouxiaoge.builderpattern.interfacesImpl.iteamImpl.extend.ChickenBurger;
import com.zhouxiaoge.builderpattern.interfacesImpl.iteamImpl.extend.Coke;
import com.zhouxiaoge.builderpattern.interfacesImpl.iteamImpl.extend.Pepsi;
import com.zhouxiaoge.builderpattern.interfacesImpl.iteamImpl.extend.VegBurger;

public class MealBuilder {

    public Meal prepareVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
